+2004-11-15 Matthias Clasen <mclasen@redhat.com>
+
+ * pixbuf-render.c:
+ * pixbuf-draw.c:
+ * pixbuf-rc-style.c: Remove uses of deprecated symbols.
+
Thu Mar 18 10:07:15 2004 Owen Taylor <otaylor@redhat.com>
* pixbuf-draw.c (match_theme_image): Fix ./-> typo.
if ((width == -1) && (height == -1))
{
- gdk_window_get_size(window, &width, &height);
+ gdk_drawable_get_size(window, &width, &height);
if (allow_setbg)
setbg = TRUE;
}
else if (width == -1)
- gdk_window_get_size(window, &width, NULL);
+ gdk_drawable_get_size(window, &width, NULL);
else if (height == -1)
- gdk_window_get_size(window, NULL, &height);
+ gdk_drawable_get_size(window, NULL, &height);
if (!(match_data->flags & THEME_MATCH_ORIENTATION))
{
if ((width == -1) && (height == -1))
{
- gdk_window_get_size(window, &width, &height);
+ gdk_drawable_get_size(window, &width, &height);
setbg = TRUE;
}
else if (width == -1)
- gdk_window_get_size(window, &width, NULL);
+ gdk_drawable_get_size(window, &width, NULL);
else if (height == -1)
- gdk_window_get_size(window, NULL, &height);
+ gdk_drawable_get_size(window, NULL, &height);
if (!(match_data->flags & THEME_MATCH_ORIENTATION))
{
if (!g_scanner_lookup_symbol(scanner, theme_symbols[0].name))
{
- g_scanner_freeze_symbol_table(scanner);
for (i = 0; i < G_N_ELEMENTS (theme_symbols); i++)
g_scanner_scope_add_symbol(scanner, scope_id,
theme_symbols[i].name,
GINT_TO_POINTER(theme_symbols[i].token));
- g_scanner_thaw_symbol_table(scanner);
}
/* We're ready to go, now parse the top level */
x_scale, y_scale,
GDK_INTERP_BILINEAR);
- gdk_pixbuf_unref (partial_src);
+ g_object_unref (partial_src);
x_offset = 0;
y_offset = 0;
GDK_PIXBUF_ALPHA_FULL, 128,
GDK_RGB_DITHER_NORMAL,
0, 0);
- gdk_pixbuf_unref (tmp_pixbuf);
+ g_object_unref (tmp_pixbuf);
}
ThemePixbuf *
{
if (!pixbuf_cache)
pixbuf_cache = g_cache_new ((GCacheNewFunc)pixbuf_cache_value_new,
- (GCacheDestroyFunc)gdk_pixbuf_unref,
+ (GCacheDestroyFunc)g_object_unref,
(GCacheDupFunc)g_strdup,
(GCacheDestroyFunc)g_free,
g_str_hash, g_direct_hash, g_str_equal);
gdk_draw_rectangle (window, tmp_gc, TRUE, x, y, width, height);
gdk_gc_unref (tmp_gc);
- gdk_pixmap_unref (tmp_pixmap);
+ g_object_unref (tmp_pixmap);
}
}
}